import request from '@/utils/request'

// 查询经纪人数据列表
export function listBroker(query) {
  return request({
    url: '/broker/broker/list',
    method: 'get',
    params: query
  })
}

// 查询经纪人数据详细
export function getBroker(id) {
  return request({
    url: '/broker/broker/' + id,
    method: 'get'
  })
}

// 新增经纪人数据
export function addBroker(data) {
  return request({
    url: '/broker/broker',
    method: 'post',
    data: data
  })
}

// 修改经纪人数据
export function updateBroker(data) {
  return request({
    url: '/broker/broker',
    method: 'put',
    data: data
  })
}

// 删除经纪人数据
export function delBroker(id) {
  return request({
    url: '/broker/broker/' + id,
    method: 'delete'
  })
}
